package com.zyh.inter;

public class InterfaceDemo1 {
    interface Dog {
        //1.7
        public int num = 10;

        public abstract void eat();

        //1.8
        public default void sleep() {
            System.out.println("默认方法sleep");
        }

        public static void eatPlus() {
            System.out.println("静态方法");
        }

        //1.9
        //私有方法
        private void eat1() {
            System.out.println("私有方法");
        }
    }
}